#ifndef __SCNS_ST7735_H__
#define __SCNS_ST7735_H__

#include "ScnsConfig.h"

#if defined(SCNS_ST7735_ENABLE)&&SCNS_ST7735_ENABLE==1

#include "ScnsBspSt7735.h"

#include "ScnsYing.h"
#include "ScnsLcd.h"

typedef enum
{
    SCNS_ST7735_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_ST7735_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_ST7735_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
    SCNS_ST7735_STATUS_TIME_OUT=SCNS_YING_STATUS_TIME_OUT,
}ScnsSt7735Status;

extern ScnsSt7735Status scnsSt7735Init(ScnsSt7735Enum stn);
extern void scnsSt7735WriteColorRGB565(ScnsSt7735Enum stn,uint16 color);
extern uint8 scnsSt7735Flush(ScnsSt7735Enum stn,Point plu,Point prd,ScnsLcdColor buf[],uint32 n,uint8 bufId);
extern uint8 scnsSt7735SetAddress(ScnsSt7735Enum stn,Point plu,Point prd);
extern Point scnsSt7735GetBorder(ScnsSt7735Enum stn);
extern void scnsSt7735SetBackgroundLight(ScnsSt7735Enum stn,ScnsLcdBackgroundLightStatus status);
#endif
#endif
